<table class="tablewhite" cellspacing="3" border="0" celpadding="0">
	<tbody>
	<tr>
		<td class="section_title" colspan="2">
			<div class="tieude">&nbsp;Danh Mục Thành Viên</div>
		</td>
	</tr>
	<tr>
		<td class="rv_tdrow1" align="center" width="10%">
		<img width="16" height="16" src="/raovat_ttcn/webroot/img/user.gif">
		</td>
		<td class="rv_tdrow1" width="90%">
		<span style="font-weight: bold; padding: 5px;" class="pink">Hello: </span>
		<b>
		<?php 
		$user = $this->requestAction(array("controller"=>"users","action"=>"thongtin_user"));
		if($user['User']['role']=="admin") {
			echo $this->Session->read("Username")."  -  "."ADMIN";
		}	
		else{
			echo $this->Session->read("Username")."  -  "."USER";
		}
		?>
		</b>
		</td>
	</tr>
	<tr>
		<td class="rv_tdrow1" align="center">
		<img width="16" height="16" src="/raovat_ttcn/webroot/img/icon_pm.gif">
		</td>
		<?php
			echo "<td class=\"rv_tdrow1\">";
			echo $html->link('Tin nhắn',array('controller'=>'users','action'=>'logout2'),array('onclick'=>'return confirm("Bạn có muốn thoát!")'));
			echo "</td>";
		?>
	</tr>
	<tr>
		<td class="rv_tdrow1" align="center">
		<img width="16" height="16" src="/raovat_ttcn/webroot/img/icon_new.gif">
		</td>
		<?php
			echo "<td class=\"rv_tdrow1\">";
			echo $html->link('Đăng tin mới',array('controller'=>'posts','action'=>'dangtinthanhvien'));
			echo "</td>";
		?>
	</tr>
	<tr>
			<td class="rv_tdrow1" align="center">
			<img width="16" height="16" src="/raovat_ttcn/webroot/img/icon_edit.gif">
			</td>
			<?php
			echo "<td class=\"rv_tdrow1\">";
			echo $html->link('Danh sách tin',array('controller'=>'users','action'=>'danhsachtindang'));
			echo "</td>";
		?>
	</tr>
	<tr>
		<td class="rv_tdrow1" align="center">
		<img width="16" height="16" src="/raovat_ttcn/webroot/img/icon_logout.gif">
		</td>
		<?php
			echo "<td class=\"rv_tdrow1\">";
			echo $html->link('Thoát',array('controller'=>'users','action'=>'logout2'),array('onclick'=>'return confirm("Bạn có muốn thoát!")'));
			echo "</td>";
		?>
		
	</tr>
</tbody>
</table>